/* Custom scrollbar styles */

/* Light mode global scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(200, 200, 200, 0.2);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(150, 150, 150, 0.5);
  border-radius: 5px;
  border: 1px solid rgba(150, 150, 150, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 130, 130, 0.7);
}

/* Firefox global */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 150, 150, 0.5) rgba(200, 200, 200, 0.2);
}

/* Chrome, Safari, Edge */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(200, 200, 200, 0.15);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(140, 140, 140, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(140, 140, 140, 0.2);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.7);
}

/* Firefox */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 140, 140, 0.5) rgba(200, 200, 200, 0.15);
}
/* Chat-specific scrollbar */
.chat-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.chat-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

/* Light mode chat scrollbar */
.chat-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(140, 140, 140, 0.5) 0%, rgba(160, 160, 160, 0.5) 100%);
  border-radius: 3px;
  opacity: 0.6;
}

.chat-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(120, 120, 120, 0.7) 0%, rgba(140, 140, 140, 0.7) 100%);
  opacity: 1;
}

/* Hide scrollbar until hover */
.chat-scrollbar-auto::-webkit-scrollbar-thumb {
  opacity: 0;
  transition: opacity 0.3s;
}

.chat-scrollbar-auto:hover::-webkit-scrollbar-thumb {
  opacity: 0.6;
}

.chat-scrollbar-auto:hover::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}
